package com.atguigu.eduservice.service;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.entity.EduVideo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author huangqicai
 * @since 2022-10-21
 */
public interface EduVideoService extends IService<EduVideo> {

    /*由小节id删除小节*/
    boolean delete(String id);

    boolean deleteVideo(String courseId);

    /*根据课程id查询与该课程有关的视频ids*/
    ArrayList<String> selectVideoIds(String courseId);

    /*根据小节的id查询小节里面的视频SourceId*/
    R getVideo(String videoId);
}
